//
//  EventCenterModel.m
//  ConvenientlyTake
//
//  Created by 张奇 on 2022/12/22.
//

#import "EventCenterModel.h"

@implementation EventCenterModel

- (UIColor *)getEventStateTextColor {
    if (self.eventState == 1) {
        //待受理
        return RGB(134, 144, 156);
    } else if (self.eventState == 2 || self.eventState == 3 || self.eventState == 4 || self.eventState == 5)  {
        //指派中 || 处理中 || 审核中
        return RGB(22, 93, 255);
    } else if (self.eventState == 6) {
        //已办结
        return RGB(0, 180, 42);
    } else if (self.eventState == 7) {
        //不予受理
        return RGB(255, 135, 0);
    } else {
        //默认灰色
        return RGB(134, 144, 156);
    }
}

- (UIColor *)getEventStateBgColor {
    if (self.eventState == 1) {
        //待受理
        return RGB(242, 243, 245);
    } else if (self.eventState == 2 || self.eventState == 3 || self.eventState == 4 || self.eventState == 5) {
        //指派中 || 处理中 || 审核中
        return RGB(232, 243, 255);
    } else if (self.eventState == 6) {
        //已办结
        return RGB(232, 255, 234);
    } else if (self.eventState == 7) {
        //不予受理
        return RGB(255, 247, 232);
    } else {
        //默认灰色
        return RGB(242, 243, 245);
    }
}

- (UIColor *)getRandomClapStateTextColor {
    if (self.randomClapState == 1) {
        //待受理
        return RGB(134, 144, 156);
    } else if (self.randomClapState == 2) {
        //处置中
        return RGB(22, 93, 255);
    } else if (self.randomClapState == 3) {
        //已办结
        return RGB(0, 180, 42);
    } else if (self.randomClapState == 4) {
        //不予受理
        return RGB(255, 135, 0);
    } else {
        //默认灰色
        return RGB(134, 144, 156);
    }
}

- (UIColor *)getRandomClapStateBgColor {
    if (self.randomClapState == 1) {
        //待受理
        return RGB(242, 243, 245);
    } else if (self.randomClapState == 2) {
        //处置中
        return RGB(232, 243, 255);
    } else if (self.randomClapState == 3) {
        //已办结
        return RGB(232, 255, 234);
    } else if (self.randomClapState == 4) {
        //不予受理
        return RGB(255, 247, 232);
    } else {
        //默认灰色
        return RGB(242, 243, 245);
    }
}

@end
